import React from 'react'

export default function HistoryItem({ type, sum, currency, date }) {
	return (
		<div className='historyPage'>
			<p
				className='historyPage__textBlock'
				style={type ? 'color: #388A1B' : 'color: #8A221B'}
			>
				{type ? '+' : '-'} {sum} {currency}
			</p>
			<p className='historyPage__textBlock'>{date}</p>
		</div>
	)
}
